package com.youlu.campus.base.integral;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;

/**
 * Created by zhuhuaiqi on 2021/02/23.
 * 用户积分明细
 */
@Data
public class UserIntegralBase extends EntityBase {

    public static final String INVITE_BIZ_TYPE = "invite";
    public static final String ACTIVITY_BIZ_TYPE = "activity";



    /**
     * 用户ID
     */
    @Indexed(name = "idx_user_id")
    private String userId;

    /**
     * 积分数值
     */
    private Integer integral = 0;
    /**
     * 业务类型:attendance:打卡,ca:下单,invite:邀请,activity:活动,job:兼职,part-time-job:兼职
     */
    private String bizType;
    /**
     * 业务ID
     */
    private String bizId;
    /**
     * 业务子ID
     */
    private String bizOId;
    /**
     * 积分描述
     */
    private String desc;
}
